from nodetypes.formats.html import BasicChain
from nodetypes.formats.mml.Events import CancelEventHandler

from libmml import reset, \
    search, \
    change_query, \
    close

from MML import EventsTransform


class EventsTransform(EventsTransform):
    
    chain = BasicChain
    
    events = ({
        'reset'         : (reset.EventHandler, {
            None        : chain,
        }),
        'search'        : (search.EventHandler, {
            None        : chain,
        }), 
        'cancel'         : (CancelEventHandler, None,)
        }, {
        'refresh'       : (search.EventHandler, {
            None        : chain,
        }),
        'change-query'  : (change_query.EventHandler, {
            None        : chain,
        }),
        'cancel'        : (CancelEventHandler, None),
        },
    )
    
del BasicChain, CancelEventHandler, reset, search, change_query